﻿@using YogaStudio.WebUI.Controllers
<!DOCTYPE html>
<head>
    <title>@ViewBag.title</title>
    <link href="~/Content/bootstrap-theme.min.css" rel="stylesheet" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    @Styles.Render("~/Content/yogacss")
    @Scripts.Render("~/bundles/yogajs");
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @RenderSection("scripts", required: false)


</head>
<body>

    <div class="wrap">
        <div class="header">
            <div class="headertop_desc">
                <div class="call" style="margin-left:400px;">
                    <p><span>Need help?</span> call us <span class="number">1-22-3456789</span></p>
                </div>
                <div class="account_desc">
                    @Html.Partial("_LoginPartial")
                </div>
                <div class="clear"></div>
            </div>
            <div class="header_top">
                <div class="logo" style="margin-top:-100px;">
                    <a href="#"><img src="~/Content/Images/logo.jpg" alt="" /></a>
                </div>
                <div class="cart">
                    <p>
                    Welcome &nbsp; <p style="color: red;font-size: 20px"> @User.Identity.Name</p>  to our Online Store! <span>Cart:</span><div id="dd" class="wrapper-dropdown-2">
                            @{Html.RenderAction("CartSummary", "ShoppingCart");}
                            @*<ul class="dropdown">
                                <li>you have no items in your Shopping cart</li>
                            </ul>*@
                        </div>
                    </p>
                </div>
                <script type="text/javascript">
                    function DropDown(el) {
                        this.dd = el;
                        this.initEvents();
                    }
                    DropDown.prototype = {
                        initEvents: function () {
                            var obj = this;

                            obj.dd.on('click', function (event) {
                                $(this).toggleClass('active');
                                event.stopPropagation();
                            });
                        }
                    }

                    $(function () {

                        var dd = new DropDown($('#dd'));

                        $(document).click(function () {
                            // all dropdowns
                            $('.wrapper-dropdown-2').removeClass('active');
                        });

                    });

                </script>
                <div class="clear"></div>
            </div>

            <div class="header_bottom">
                <div id="cssmenu">
                    <ul>
                        <li>
                            @Html.ActionLink("Home", "Index", "Home")
                        </li>
                        @if (User.IsInRole("Customer"))
                        {
                            <li class="has-sub">
                                <a href='#'><span>Waiver</span></a>
                                <ul>
                                    <li>
                                        @Html.ActionLink("Customer Profile", "Create", "Customers")
                                    </li>
                                    
                                    <li>
                                        @Html.ActionLink("Request Waiver", "RequestWaiver", "WaiverRequest")
                                    </li>
                                    <li>
                                        @Html.ActionLink("View Waiver List", "mywaiverrequest", "WaiverRequest")
                                    </li>
                                    
                                 
                                </ul>

                            </li>
                        }
                        @if (User.IsInRole("Faculty"))
                        {
                            <li class='has-sub'>
                                @*<a href='#'><span>Manage Customer</span></a>*@                                
                                @Html.ActionLink("Manage Customer", "", "Faculty")
                                <ul>
                                    <li>
                                        @Html.ActionLink("View Waivers", "AllWaivers", "WaiverRequest")
                                    </li>
                                    <li>
                                        @Html.ActionLink("View Advisees", "ViewAdvisees", "Faculty")
                                    </li>
                                    <li>
                                        @Html.ActionLink("View Sections", "ViewSections", "Sections")
                                    </li>
                                    <li>
                                        @Html.ActionLink("View Students", "ViewStudents", "Customers")
                                    </li>
                                </ul>
                            </li>
                        }
                        
                        <li class="has-sub">
                            <a href='#'><span>Products</span></a>
                            <ul>
                                <li>
                                    @Html.ActionLink("All Products", "GetAllProducts", "Product")
                                </li>
                                @if (User.Identity.IsAuthenticated)
                                {
                                    <li>
                                        @Html.ActionLink("Purchased Products", "PurchasedOrder", "Product")
                                    </li>
                                }
                                
                                @if (User.IsInRole("Admin"))
                                {
                                    <li>@Html.ActionLink("Manage Category", "Index", "Category")</li>
                                    <li>
                                        @Html.ActionLink("Manage Product", "Index", "ProductAdmin")
                                    </li>
                                }

                            </ul>
                        </li>

                        
                        @if (User.IsInRole("Admin"))
                        {
                            <li class='has-sub'>
                                <a href='#'><span>Manage Resourses</span></a>
                                <ul>
                                    <li>
                                        @Html.ActionLink("Manage Rooms", "Index", "Rooms")
                                    </li>
                                    <li>
                                        @Html.ActionLink("Manage Semesters", "Index", "Semesters")
                                    </li>
                                    <li>
                                        @Html.ActionLink("Manage Schedules", "Index", "Schedules")
                                    </li>
                                    <li>
                                        @Html.ActionLink("Manage Courses", "Index", "Courses")
                                    </li>
                                    <li>
                                        @Html.ActionLink("Manage Faculty", "Index", "Faculties")
                                    </li>
                                    <li>
                                        @Html.ActionLink("Manage Sections", "Index", "Sections")
                                    </li>
                                    <li>
                                        @Html.ActionLink("Manage Customer", "Index", "CustomersAdmin")
                                    </li>
                                    
                                </ul>
                            </li>
                        }
                        
                        
                        <li class="has-sub">
                            <a href="#">Course</a>
                            <ul>
                                <li>
                                    @Html.ActionLink("Courses", "CustomerIndex", "Sections")        
                                </li>
                                @if (User.IsInRole("Customer"))
                                {
                                    <li>
                                        @Html.ActionLink("Transcript", "Index", "Transcripts")
                                    </li>
                                }
                            </ul>
                            
                        </li>
                        
                        @if (User.Identity.IsAuthenticated)
                        {
                            <li class="has-sub">
                                <a href='#'><span>Account</span></a>
                                <ul>
                                    <li>@Html.ActionLink("Change Password", "passwordchange", "Account", routeValues: null, htmlAttributes: new { title = "change password" })</li>
                                    @if (User.IsInRole("Customer"))
                                    {
                                        <li>@Html.ActionLink("View Profile", "details", "Customers", routeValues: null, htmlAttributes: new { title = "view profile" })</li>
                                    }
                                </ul>
                            </li>
                        }
                        <div class="clear"></div>
                    </ul>
                </div>
                <div class="search_box">
                    @Html.Partial("_SearchPartial")
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <div class="header_slide">
            <div class="header_bottom_left">
                <div class="categories">
                    <ul>
                        <h3>Categories</h3>
                        <li>@{Html.RenderAction("GetAllCategories", "Category");}</li>
                    </ul>
                </div>
            </div>
            <div class="header_bottom_right">
                @if (ViewBag.home != null && ViewBag.home)
                {

                    <div class="slider">
                        <div id="slider">
                            <div id="mover">
                                <div id="slide-1" class="slide">
                                    <div class="slider-img">
                                        <img src="~/Content/Images/yogaimage/9.jpg" alt="learn more" />
                                    </div>
                                    <div class="slider-text">
                                        <h1>Yoga<br><span>Class</span></h1>
                                        <h2>Enroll For Regular Class</h2>
                                        <div class="features_list">
                                            <h4>Contact us to Know More About Our Memorable Services!</h4>
                                        </div>
                                        <a href="#" class="button">Enroll Today</a>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="slide">
                                    <div class="slider-text">
                                        <h1>Clearance<br><span>SALE</span></h1>
                                        <h2>UPTo 40% OFF</h2>
                                        <div class="features_list">
                                            <h4>For our registered customer we are offering very affordable price on sale. </h4>
                                        </div>
                                        <a href="#" class="button">Shop Now</a>
                                    </div>
                                    <div class="slider-img">
                                        <a href="preview.html"><img src="~/Content/Images/yogaimage/13.png" alt="learn more" /></a>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="slide">
                                    <div class="slider-img">
                                        <a href="preview.html"><img src="~/Content/Images/yogaimage/6.jpg" alt="learn more" /></a>
                                    </div>
                                    <div class="slider-text">
                                        <h1>Yoga At<br><span>BEACH</span></h1>
                                        <h2>20% OFF</h2>
                                        <div class="features_list">
                                            <h4>We are going to organize yoga class in beach side for one week. So hurry up to register!!</h4>
                                        </div>
                                        <a href="#" class="button">Register Class</a>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                }
                else
                {
                    @RenderBody()
                }
            </div>
            <div class="clear"></div>
        </div>
        @if (ViewBag.home != null && ViewBag.home)
        {
            @RenderBody()
        }
    </div>

    <div class="footer">

        <div class="copy_right">
            <p>Work Nazis © All rights Reseverd | Design by  Work Nazis Team (MUM) </p>
        </div>
        <div class="wrap" style="text-align: center;">
            <div class="social-icons" style="padding-top: 0px;">
                <h4>Follow Us</h4>
                <ul>
                    <li><a href="#" target="_blank"><img src="~/Content/images/facebook.png" alt="" /></a></li>
                    <li><a href="#" target="_blank"><img src="~/Content/images/twitter.png" alt="" /></a></li>
                    <li><a href="#" target="_blank"><img src="~/Content/images/skype.png" alt="" /> </a></li>
                    <li><a href="#" target="_blank"> <img src="~/Content/images/dribbble.png" alt="" /></a></li>
                    <li><a href="#" target="_blank"> <img src="~/Content/images/linkedin.png" alt="" /></a></li>
                    <div class="clear"></div>
                </ul>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            try{
                $().UItoTop({ easingType: 'easeOutQuart' });
            } catch(e) {}
        });
    </script>
    <a href="#" id="toTop"><span id="toTopHover"> </span></a>
</body>
